<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<ui:composition template="/templates/template.xhtml">
	<p:growl id="growl" showDetail="true" sticky="true" />
	<ui:define name="title">
		Cadastro de Produto
	</ui:define>

	<ui:define name="head">
		<style type="text/css">
#panelGrid1 {
	width: 100%;
	border-style: none;
	border-width: 0px;
}

.colunaPanelGrid1 {
	border-width: 0px;
	border-style: none;
}

.colDir {
	text-align: right;
}

.colEsq {
	text-align: left;
}


</style>

		<script type="text/javascript">
			function verificarEstoque() {
				var qtdaAtual = $("#txtQtdaAtual").val();
				var qtdaMin = $("#txtQtdaMin_input").val();

				if (qtdaMin >= qtdaAtual) {
					$("#txtQtdaAtual").css("background-color", "#FCCCCC");
				}
			}
		</script>
	</ui:define>

	<ui:define name="centro">
		<h:form id="form1" prependId="false">
			<p:outputPanel id="painelEditarProduto"
				rendered="#{manterProdutoMB.editarState or manterProdutoMB.adicionarState}">
				<ui:include src="painelEditarProduto.xhtml" />
			</p:outputPanel>

			<p:outputPanel id="painelPesquisarProduto"
				rendered="#{manterProdutoMB.pesquisarState}">
				<ui:include src="painelPesquisarProduto.xhtml" />
			</p:outputPanel>

			<p:outputPanel id="painelDetalharProduto"
				rendered="#{manterProdutoMB.detalharState}">
				<ui:include src="painelDetalharProduto.xhtml" />
			</p:outputPanel>
		</h:form>
	</ui:define>
</ui:composition>
</html>